﻿using Microsoft.EntityFrameworkCore;
using Abp.Zero.EntityFrameworkCore;
using ALEXFW.Authorization.Roles;
using ALEXFW.Authorization.Users;
using ALEXFW.MultiTenancy;
using ALEXFW.BasicModel;

namespace ALEXFW.EntityFrameworkCore
{
    public class ALEXFWDbContext : AbpZeroDbContext<Tenant, Role, User, ALEXFWDbContext>
    {
        /* Define a DbSet for each entity of the application */
        
        public ALEXFWDbContext(DbContextOptions<ALEXFWDbContext> options)
            : base(options)
        {
        }

        public DbSet<School> Schools { get; set; }
        public DbSet<College> Colleges { get; set; }
        public DbSet<Classes> Classes { get; set; }
        public DbSet<Student> Students { get; set; }
        public DbSet<Teacher> Teachers { get; set; }
        public DbSet<Category> Categories { get; set; }
        public DbSet<Group> Groups { get; set; }
        public DbSet<Exercise> Exercises { get; set; }
        public DbSet<ExerciseScore> ExerciseScores { get; set; }
        public DbSet<ApplyRecord> ApplyRecords { get; set; }
        public DbSet<TopicRepository> TopicRepositories { get; set; }
    }
}
